const vm = new Vue({
    el: '#main',
    data: {
        opinion: '',
        contactWay: '',
    },
});

function main() {
    fxj.fixLayout();
}

function apiready() {
    main();

}

async function submit() {
    const result = await ajax({
        url: 'home/feedback/index',
        type: 'POST',
        data: {
            msg: vm.opinion,
            contact: vm.contactWay,
        },
    });
    toast(result.msg);
    if (result.err === 0) {
        setTimeout(() => {
            fxj.closeWin();
        }, 1500);
    }
}
